// Use this for initialization void Start() { lr = gameObject.GetComponent <LineRenderer>(); pc = player.GetComponent <PlayerController>(); flip = player.GetComponent <FlipMechanic>(); lastHitPoint = transform.position; }
// Use this for initialization void Start() { flip = GetComponent <FlipMechanic>(); spawnPosition = transform.position; playerRB = GetComponent <Rigidbody2D>(); animator = this.GetComponent <Animator>(); audioPlayer = this.GetComponent <AudioSource>(); facingRight = true; StartCoroutine(Spawn(0.0f)); axisX = false; axisY = false; dustSystem = GetComponentsInChildren <ParticleSystem>()[3]; }
void OnLevelFinishedLoading(Scene scene, LoadSceneMode mode) { flip = GameObject.FindObjectOfType <FlipMechanic>(); }
// Use this for initialization void Start() { flip = GameObject.FindObjectOfType <FlipMechanic>(); zPos = transform.position.z; }