Class MonsterSyncer
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class MonsterSyncer : MonoBehaviour, IPunObservable
- Inheritance
-
MonsterSyncer
- Implements
-
IPunObservable
- Inherited Members
-
- Extension Methods
-
Constructors
MonsterSyncer()
Fields
AttackAction
public Action<int> AttackAction
Field Value
- Action<int>
applyData
Field Value
- bool
bot
Field Value
- Bot
hasNotRecievedFirstPackage
public bool hasNotRecievedFirstPackage
Field Value
- bool
lastPos
Field Value
- Vector3
lookDistance
public float lookDistance
Field Value
- float
m_Inited
Field Value
- bool
player
Field Value
- Player
sinceLastPackage
public float sinceLastPackage
Field Value
- float
targetLook
public Vector2 targetLook
Field Value
- Vector2
targetPos
Field Value
- Vector3
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()