// Start is called before the first frame update void Start() { rigid = GetComponent <Rigidbody>(); deneb = GameObject.FindGameObjectWithTag("BossEnemy").GetComponent <Deneb>(); if (deneb.OnRight) { speed = -speedOrigin; } else { speed = speedOrigin; } SetMarker(); }
// Start is called before the first frame update void Start() { rigid = GetComponent <Rigidbody>(); deneb = GameObject.FindGameObjectWithTag("BossEnemy").GetComponent <Deneb>(); SetMarker(); }