// Use this for initialization public void Start() { //Material参照 eye = meshRenderer.materials[2]; for (int i = 0; i < hairs_number.Count; i++) { hairs.Add(meshRenderer.materials[hairs_number[i]]); } ConditionDelegateUpdate(); this.gameObject.name = this.gameObject.name.Replace("(Clone)", ""); m_tag = this.gameObject.tag; m_name = this.gameObject.name; way_points = GameObject.FindGameObjectWithTag("Waypoints"); es = collider.gameObject.GetComponent <EnemySwordControl>(); canvas = _information.GetComponentInParent <Canvas>(); //召喚時のフラグ if (!isfriend) { SetUpWild(); } else { SetUpFriend(); } }
// Use this for initialization void Start() { ConditionDelegateUpdate(); this.gameObject.name = this.gameObject.name.Replace("(Clone)", ""); m_tag = this.gameObject.tag; m_name = this.gameObject.name; way_points = GameObject.FindGameObjectWithTag("Waypoints"); es = collider.gameObject.GetComponent <EnemySwordControl>(); es._power = _power; canvas = GetComponentInChildren <Canvas>(); SetUp(); state = State.Walk; }