// Use this for initialization
 void Start()
 {
     DogeCore = FindObjectOfType<DogeCore>();
     moveSpeed = GetComponent<Enemy>().enemyMovementSpeed;
     body = GetComponent<Enemy>().rigidBody;
     m_PhotonView = GetComponent<PhotonView>();
 }
 void Awake()
 {
     m_PhotonView = GetComponent<PhotonView>();
     myRigidBody = GetComponent<Rigidbody2D>();
     dogeCore = FindObjectOfType<DogeCore>();
 }
Exemple #3
0
 void Start()
 {
     dogeCore = FindObjectOfType<DogeCore>();
     myRigidBody = GetComponent<Rigidbody2D>();
     m_PhotonView = GetComponent<PhotonView>();
     randomJumpDelay = Random.value * maxJumpDelay;
     movementEnabled = true;
     attackingEnabled = true;
     attackCheckTimer = minAttackDelay;
     minJumpDelay = minJumpDelay1;
     maxJumpDelay = maxJumpDelay1;
     doubleJumpEnabled = true;
 }