Beispiel #1
0
    void Start()
    {
        remotePlayer = GameObject.FindWithTag("RemotePlayer").transform;
        myParams     = GetComponent <RemoteParams>();
        myAni        = GetComponent <RemoteAni>();
        myParams.InitParams();
        myParams.deadEvent.AddListener(RemoteChangeToPlayerDead);


        player       = GameObject.FindWithTag("Player").transform;
        playerParams = GameObject.FindWithTag("Player").GetComponent <PlayerParams>();
        playerAni    = GameObject.FindWithTag("Player").GetComponent <PlayerAni>();

        monster     = GameObject.Find("Spider").transform;
        redTowerPos = GameObject.FindWithTag("RedTower").transform;

        curEnemyParams = GameObject.Find("Monster").GetComponent <MonsterParams>();

        towerParams = GameObject.FindWithTag("RedTower").GetComponent <TowerParams>();

        network = GameObject.Find("NetworkManager").GetComponent <Network>();

        Debug.Log("리모트 FSM Start ");
        skillBtn = GameObject.Find("TaiLungSpell1").GetComponent <SkillButton>();
    }
Beispiel #2
0
    // 초기화
    void Start()
    {
        playerCharacter = GameObject.FindWithTag("Player");

        player   = GameObject.FindWithTag("Player").transform;
        myParams = GetComponent <PlayerParams>();
        myAni    = GetComponent <PlayerAni>();
        myParams.InitParams();
        myParams.deadEvent.AddListener(ChangeToPlayerDead);

        remotePlayer = GameObject.FindWithTag("RemotePlayer").transform;
        remoteParams = GameObject.FindWithTag("RemotePlayer").GetComponent <RemoteParams>();
        remoteAni    = GameObject.FindWithTag("RemotePlayer").GetComponent <RemoteAni>();
        remoteFSM    = GameObject.FindWithTag("RemotePlayer").GetComponent <RemoteFSM>();

        monster     = GameObject.Find("Spider").transform;
        skillButton = GameObject.Find("TaiLungSpell1").GetComponent <SkillButton>();

        curEnemyParams = GameObject.Find("Monster").GetComponent <MonsterParams>();


        basicAttack = GameObject.Find("AttackButton").GetComponent <AttakButton>();

        redTowerPos = GameObject.FindWithTag("RedTower").transform;

        towerParams = GameObject.FindWithTag("RedTower").GetComponent <TowerParams>();

        network = GameObject.Find("NetworkManager").GetComponent <Network>();


        joy = GameObject.Find("JoystickBackGround").GetComponent <JoyStick>();
    }
Beispiel #3
0
    // Use this for initialization
    void Start()
    {
        myParams = GetComponent <TowerParams>();
        myParams.deadEvent.AddListener(CallDeadEvent);


        player       = GameObject.FindWithTag("Player").transform;
        playerParams = player.gameObject.GetComponent <PlayerParams>();


        remoteFSM = GameObject.FindWithTag("RemotePlayer").GetComponent <RemoteFSM>();

        redTower        = GameObject.FindWithTag("RedTower").GetComponent <GameObject>();
        DistroyRedTower = GameObject.FindWithTag("RedTowerDistroy");
    }
Beispiel #4
0
 void Start()
 {
     towerParams     = GameObject.Find("109").GetComponent <TowerParams>();
     characterCreate = GetComponent <CharacterCreate>();
 }