Boss03Phase3 P3; //for wendigo boss // Use this for initialization void Start() { //Grab controls from controls save file moveRight = ControlsSerializeManager.Load_MoveRight_Data(); moveLeft = ControlsSerializeManager.Load_MoveLeft_Data(); jumpKey = ControlsSerializeManager.Load_Jump_Data(); shootKey = ControlsSerializeManager.Load_ShootLemon_Data(); anim = GetComponent <Animator>(); rb = GetComponent <Rigidbody2D>(); healthManager = FindObjectOfType <PlayerHealthManager>(); facingRight = true; isWalking = false; projectilePos = transform.Find("projectilePos"); //find child named projectilePos (i.e. its position) flipValue = 1; justJumped = false; landedFromJump = false; if (FindObjectOfType <Boss03Phase3>() != null) { P3 = GameObject.FindObjectOfType <Boss03Phase3>(); } }
Boss03Phase3 P3; //for wendigo boss // Use this for initialization void Start() { anim = GetComponent <Animator>(); rb = GetComponent <Rigidbody2D>(); healthManager = FindObjectOfType <PlayerHealthManager>(); facingRight = true; isWalking = false; projectilePos = transform.Find("projectilePos"); //find child named projectilePos (i.e. its position) flipValue = 1; justJumped = false; landedFromJump = false; if (FindObjectOfType <Boss03Phase3>() != null) { P3 = GameObject.FindObjectOfType <Boss03Phase3>(); } }