Esempio n. 1
0
    private void Awake()
    {
        this.target = GameObject.Find("Sailor");

        this.actions = GetComponent <Sailor_Actions>();
        if (this.actions == null)
        {
            Debug.Log("No Sailer_Actions on Ai sailor");
        }

        this.movements = GetComponent <Sailor_Movement>();
        if (this.movements == null)
        {
            Debug.Log("No Sailor_Movement on Ai sailor");
        }
    }
    void Awake()
    {
        this.move = new Vector2();

        this.movement = GetComponent <Sailor_Movement>();
        if (this.movement == null)
        {
            Debug.Log("No Sailor_Movement script on Sailor");
        }

        this.actions = GetComponent <Sailor_Actions>();
        if (this.actions == null)
        {
            Debug.Log("No Sailor_Actions script on sailor");
        }


        // Override default stats
        this.actions.Stats.HP             = 150;
        this.actions.Stats.weaponDamage   = 20;
        this.actions.Stats.weaponCooldown = 1f;
    }