// Use this for initialization void Start() { forward = transform.forward; forward.y = 0; float headingAngle = Quaternion.LookRotation(forward).eulerAngles.y; getScaleScript = GameObject.Find("ScaleBoss").GetComponent<ScaleBossScript>(); Destroy(gameObject, lifeTime); }
// Use this for initialization void Start() { forward = transform.forward; forward.y = 0; float headingAngle = Quaternion.LookRotation(forward).eulerAngles.y; getScaleScript = GameObject.Find("ScaleBoss").GetComponent <ScaleBossScript>(); Destroy(gameObject, lifeTime); }
// Use this for initialization void Start() { oldSpeed = speed; step = speed * Time.deltaTime; scalar = 1.2f; canDraw = true; getScaleScript = GameObject.Find("ScaleBoss").GetComponent <ScaleBossScript>(); bossLocation = GameObject.Find("ScaleBoss"); other = bossLocation.transform; target = bossLocation.transform; }
// Use this for initialization void Start() { oldSpeed = speed; step = speed * Time.deltaTime; scalar = 1.2f; canDraw = true; getScaleScript = GameObject.Find("ScaleBoss").GetComponent<ScaleBossScript>(); bossLocation = GameObject.Find ("ScaleBoss"); other = bossLocation.transform; target = bossLocation.transform; }