Esempio n. 1
0
    //int time;
    //public List<GameObject> instancesEnermies;
    // Use this for initialization
    protected override void OnStart()
    {
        cloneplayer = Instantiate(player , Vector3.zero , Quaternion.identity) as GameObject;

        cam = GetComponent<CameraCtrl>();
        cam.SetTarget(cloneplayer.transform);

        //instancesEnermies.Add(pEnermy);

        Messenger.RegisterListener(new Listener("Damage", cloneplayer, "HandleMessage"));
    }