Esempio n. 1
0
    public override void UpdateSui()
    {
        m_walker.Update();

        if (!m_bridgeWalkArea.IsCoordInsideHori(m_sui.transform.position.x))
        {
            m_sui.Destroy();
        }
    }
Esempio n. 2
0
    private Suicider GetRandomWalkingSuiInsideJumpArea()
    {
        List <Suicider> suisInJumpArea = SuiControllerWalkOnBridge.Suiciders.FindAll(t => { return(m_jumpArea.IsCoordInsideHori(t.transform.position.x)); });

        if (suisInJumpArea.Count == 0)
        {
            return(null);
        }

        return(suisInJumpArea[Random.Range(0, suisInJumpArea.Count)]);
    }