protected void OnEnable() { m = GetComponent<Missile>(); td = FindObjectOfType<TimerDisplay>(); timerReadout = td.wir; rigid = GetComponent<Rigidbody2D>(); timer = 0; if (td.control != null) td.control.IsVisible = false; timerActive = true; if(RadarController.RC != null) RadarController.RC.radar.target = this.gameObject; }
// Use this for initialization void Start () { mr = this; readout = GetComponent<WeaponInfoReadout>(); GameManager.Instance.Money = 1200;///initialize money value to 0 }
// Use this for initialization void Start () { control = GetComponent<dfControl>(); tween = GetComponent<dfTweenFloat>(); wir = GetComponent<WeaponInfoReadout>(); }