Example #1
0
 //スライムをぶっこわす
 public void SlimeDestroy(Vector3 MoveWay)
 {
     script.slimenum--;
     script.CheckSlime();
     StartCoroutine(SlimeMove(MoveWay));
     Destroy(gameObject.transform.parent.gameObject);
 }
Example #2
0
    // Start is called before the first frame update
    void Awake()
    {
        Manager = GameObject.Find("StageManager");
        script  = Manager.GetComponent <manager>();

        //    Field = transform.parent.gameObject;//GameObject.Find("Field");
        //   F_script = Field.GetComponent<field>();
        Physics.gravity = new Vector3(0, 0, 0);
        isMove          = false;
        //SE取得
        if (transform.position.x > 0)
        {
            Mathf.Ceil(transform.position.x);
        }
        else
        {
            Mathf.Floor(transform.position.x);
        }
        Mathf.Ceil(transform.position.y);
        Mathf.Ceil(transform.position.z);

        Mathf.Ceil(transform.rotation.x);
        Mathf.Ceil(transform.rotation.y);
        Mathf.Ceil(transform.rotation.z);

        script.CheckSlime();
        script.slimenum++;
    }