コード例 #1
0
ファイル: Burb.cs プロジェクト: benviss/Chicken-Game
    // Start is called before the first frame update
    void Start()
    {
        boid             = GetComponent <Boid>();
        energyMultiplier = 1;

        if (boid != null)
        {
            boid.switchState(new GrazeState(boid, this));
            attackDistance   = 1;
            energyMultiplier = .5f;
            StartCoroutine(GrowUpAnimation());
        }

        spOrient = GetComponent <SpriteOrienter>();
        energy   = 30;
    }
コード例 #2
0
    // Start is called before the first frame update
    void Start()
    {
        //CoyoteBoidManager.Instance.InitilizeBoids();

        boid             = GetComponent <Boid>();
        energyMultiplier = 1;

        if (boid != null)
        {
            boid.switchState(new GrazeState(boid, this));
            attackDistance   = 1;
            energyMultiplier = .5f;
        }

        spOrient = GetComponent <SpriteOrienter>();
        energy   = 30;
    }