Inheritance: MonoBehaviour
Exemplo n.º 1
0
    void Start()
    {
        base.targetLocation = Player.Instance.getClosestVertice();
        base.setMovementScript(this.GetComponent <AStar>());
        this.GetComponent <AStar> ().movementType = AStar.VerticeType.FlYING;
        base.setTarget(targetLocation);
        base.moveTowardsPlayerAtEndOfPath = false;

        base.getNewPlan(targetLocation);

        this.flyingBomb = this.GetComponent <DropTheBomb>();

        // Start finding plan
        StartCoroutine(this.flyToPlayer());
    }
    void Start()
    {
        base.targetLocation = Player.Instance.getClosestVertice();
        base.setMovementScript(this.GetComponent<AStar>());
        this.GetComponent<AStar> ().movementType = AStar.VerticeType.FlYING;
        base.setTarget(targetLocation);
        base.moveTowardsPlayerAtEndOfPath = false;

        base.getNewPlan(targetLocation);

        this.flyingBomb = this.GetComponent<DropTheBomb>();

        // Start finding plan
        StartCoroutine(this.flyToPlayer());
    }