Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        Init();

        state = new MoveState(this);
        PolarCoordinates.RotateAngles(sprite.gameObject.transform, baseParameter.moveParameter.direction);
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        attackParameter.damage      = new Damage(30, false, 20, parent.frontDirection, false);
        baseParameter.moveParameter = new MoveParameter(parent.frontDirection, 2F);

        state = new MoveState(this);
        PolarCoordinates.RotateAngles(sprite.gameObject.transform, baseParameter.moveParameter.direction);
    }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        mapManager = GameObject.Find("map_manager").GetComponent <MapManager>();

        attackParameter.damage      = new Damage(20, false, 30, parent.frontDirection, false);
        baseParameter.moveParameter = new MoveParameter(parent.frontDirection, 0F);


        state = new IkariMoveState(this);
        PolarCoordinates.RotateAngles(sprite.gameObject.transform, baseParameter.moveParameter.direction + 180);
    }