Table of Contents

Class MonsterSyncer

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class MonsterSyncer : MonoBehaviour, IPunObservable
Inheritance
MonsterSyncer
Implements
IPunObservable
Inherited Members
Extension Methods

Constructors

MonsterSyncer()

public MonsterSyncer()

Fields

AttackAction

public Action<int> AttackAction

Field Value

Action<int>

applyData

public bool applyData

Field Value

bool

bot

public Bot bot

Field Value

Bot

hasNotRecievedFirstPackage

public bool hasNotRecievedFirstPackage

Field Value

bool

lastPos

public Vector3 lastPos

Field Value

Vector3

lookDistance

public float lookDistance

Field Value

float

m_Inited

public bool m_Inited

Field Value

bool

player

public Player player

Field Value

Player

sinceLastPackage

public float sinceLastPackage

Field Value

float

targetLook

public Vector2 targetLook

Field Value

Vector2

targetPos

public Vector3 targetPos

Field Value

Vector3

view

public PhotonView view

Field Value

PhotonView

Methods

CallAttack(int)

public void CallAttack(int viewID)

Parameters

viewID int

FixedUpdate()

public void FixedUpdate()

OnPhotonSerializeView(PhotonStream, PhotonMessageInfo)

public void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info)

Parameters

stream PhotonStream
info PhotonMessageInfo

PhysicsSync(float)

public void PhysicsSync(float timeBetweenPackages)

Parameters

timeBetweenPackages float

RPCA_Attack(int)

[PunRPC]
public void RPCA_Attack(int viewID)

Parameters

viewID int

RPCA_SyncMe(Vector3, Vector3)

[PunRPC]
public void RPCA_SyncMe(Vector3 position, Vector3 lookDir)

Parameters

position Vector3
lookDir Vector3

SimpleSync(float)

public void SimpleSync(float timeBetweenPackages)

Parameters

timeBetweenPackages float

Start()

public void Start()