Exemple #1
0
        public Arrow Create(Vector3 origin, Vector3 target)
        {
            Arrow arrow = BattleSystem.Instantiate(gameObject).GetComponent <Arrow>();

            arrow.origin = origin;
            arrow.target = target;
            arrow.Init();
            return(arrow);
        }