// 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>(); }
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; }