Example #1
0
 // Use this for initialization
 void Start()
 {
     DogeCore = FindObjectOfType<DogeCore>();
     moveSpeed = GetComponent<Enemy>().enemyMovementSpeed;
     body = GetComponent<Enemy>().rigidBody;
     m_PhotonView = GetComponent<PhotonView>();
 }
Example #2
0
 void Awake()
 {
     m_PhotonView = GetComponent<PhotonView>();
     myRigidBody = GetComponent<Rigidbody2D>();
     dogeCore = FindObjectOfType<DogeCore>();
 }
Example #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;
 }