private void OnEnable()
    {
        movement = GetComponent <AgentMovement>();

        input        = GetComponent <MyPlayerInput>();
        myAnimations = GetComponent <MyAnimations>();
        //input = GetComponentInParent<MyPlayerInput>();
        //myAnimations = GetComponentInParent<MyAnimations>();
        currentState = movementState;
        currentState.EnterState(this);
        AssignMovementInputListeners();
    }
Esempio n. 2
0
        public CalcRoutePage(MyList _ml, BrandsViewModel _bvm)
        {
            InitializeComponent();

            animations = new MyAnimations();
            ml         = _ml;
            bvm        = _bvm;

            BindingContext = ml;

            Products.ItemsSource = ml.items;

            HeaderTitle.Text = ml.Topic;

            animations.TranslateStackLayout(APISearch, -Application.Current.MainPage.Width, 0, 0, Easing.Linear);

            //animations.TranslateStackLayout(SearchItems, 0, Application.Current.MainPage.Height, Convert.ToUInt32( Application.Current.MainPage.Height), Easing.CubicOut);

            //Launcher.OpenAsync("geo:0,0?q=394+Pacific+Ave+San+Francisco+CA");
        }
Esempio n. 3
0
 /// <summary>
 /// Adds a new animation
 /// </summary>
 /// <param name="name">Animation name</param>
 /// <param name="animation">The animation to add</param>
 public void CreateAnimation(string name, Animation animation)
 {
     //Adds a new animation to the dictionary
     MyAnimations.Add(name, animation);
 }
Esempio n. 4
0
    //public GameObject player, bear, wolf;

    private void Start()
    {
        characterController = GetComponent <CharacterController>();
        agentAnimations     = GetComponent <MyAnimations>();
        myPlayerInput       = GetComponent <MyPlayerInput>();
    }