// Use this for initialization void Start() { PlayerObj=GameObject.Find("Player"); if(null!=GameObject.Find("MultiShoot")) { MultiShot=GameObject.Find("MultiShoot").GetComponent<multiShoot>(); } Connect(); }
// Use this for initialization void Start() { PlayerObj = GameObject.Find("Player"); if (null != GameObject.Find("MultiShoot")) { MultiShot = GameObject.Find("MultiShoot").GetComponent <multiShoot>(); } Connect(); }