void Start () { mode = IDLE; //Map.mainMap [1, 1].Add (this); Map.Create (this); //oldDir = dir; anim = GetComponent<Animator>(); audio = GetComponent<AudioSource>(); Rotate (dir); holdTime = 0f; characterId = 0; summoner = GetComponent<TotemSummoner> (); temp = catchIcon.GetComponent<Image>().color; temp.a = opacity; catchIcon.GetComponent<Image> ().color = temp; transform.position = Map.GetRealPosition(new IntVector2(1,1), typeof(Player)); //Hp GUI initialize HpInitialize (); }
// Use this for initialization void Start () { player = GameObject.FindWithTag ("Player").GetComponent<Player> (); if(player!=null) summoner = player.GetComponent<TotemSummoner> (); }